package ru.autofan.domain;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "auth_role")
public class AuthRole extends Role implements Serializable, Cloneable {

	private static final long serialVersionUID = 1L;
	
	@Basic
	private Long uuid;

	public AuthRole() {

	}

	public AuthRole(String string) {
		super(string);
	}

	@Override
	protected Object clone() throws CloneNotSupportedException {
		AuthRole clone = new AuthRole();
		clone.setType(getType());
		return clone;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj instanceof Role) {
			return this.getType().equals(((Role)obj).getType());
		}
		return false;
	}

	public Long getUuid() {
		return uuid;
	}

	public void setUuid(Long uuid) {
		this.uuid = uuid;
	}
	
	


}
